The ROMA score is calculated using a specific algorithm that includes the levels of HE4 and CA-125, as well as whether the patient is premenopausal or postmenopausal. The formulae differ slightly based on menopausal status, reflecting the changes in biomarker levels due to hormonal variations.