fixing small bug in expected wait formula