fixed formula for calculating downtime# 2