"Seems simple to me, just calculate how much of the downtime period overlaps the avilabiity schedule"

Can you point out some websource or information regarding this method you mentioned ?

How to create avilability schedule >? How to compare actual time pereid to this schedule ?

thanks