equation for RH