Use Orifice calculation to determine flow through a grate if water depth is 4" or more.
Use Weir calculation to determine how much water flows to the grate if water depth is less than 4".