There are multiple methods that James hoffman breaks down in this video iirc, if anyone is curious.
https://youtu.be/yYTSdlOdkn0?si=uAo3pipjBA91OV5V