From the time you started recording uptime, count minutes or seconds to the current time.
From the time the site went down, count the same minutes or seconds until it goes back online.
You'll have total uptime to date (a) and downtime (b)
Simply work out the percentage (b) is from (a).
Remember that (a) should continually be updated to give a real figure for (b).