Finally convinced its right, perhaps it would be clearer to mention that when midnight is detected the “X" represents 24,,,,, and one must do the math within that box!
Rankinl about Time Calculator, v1.2