Correctly calculates time of flush
Waits 10s before idling