calculate actual number of days waited