One Machine Availability algorithm implementation