Does anyone know what the calculation is for working out the new height when an image is resized while maintaining aspect ratio?

I am doing this manually so just need the formula.

thanks!