small fix in remaining time calculations