Theoretical determination of hydrodynamic window in monolayer and bilayer graphene from scattering rates