fixed formula for calculating downtime