calculate downtime in seconds, not as a timestamp