...
TTotal = Total time in which the plant could produce (see also picture below).
TDown = Not planned time in which the production of the plant is down.
In words
Availability = total plant time minus total downtime this divided by total plant time multiplied by 100.
...