calc remaining based on minimum time