What is the formula for calculating plant uptime?

The formula for calculating plant uptime is:
Plant Uptime = plant run time (production) / Total available time to run or produce