Cloud Top Height formula

Hello all… i’m using open grads and would like to calculate the cloud top height.

The given information is surface pressure and cloud top pressure
Eventually also cloud top temperature

Any idea ?

Do i use sf pressure - ct pressure to get a pressure difference which I divide by 12,5 mb per 100 meters?