Huh? Not at all. That's what the sump pump on a float switch is for. When the water level in the sump rises and triggers the float switch, it turns on the drain pump until the water level drops down to normal. When it rises again a few hours later, the pump gets turned on. There is no need to figure out anything as far as rate of incoming water.
The issue with this is what is the power goes out or the float switch fails, you need a solenoid to do two things:
1) cut off the flow of water if the float switch/drain pump fails and the water level in the sump begins to rise beyond the float switch
2) cut off the flow of water if the power is goes out