fixed calculation of downtime costs