updated formula for openrtsp