A method and apparatus for calculating current lost through a patient during a treatment of a patient using an electromagnetic energy delivery system is disclosed. The system generates electromagnetic energy, contacts a skin surface of the patient, transfers the electromagnetic energy to tissue beneath the surface of the skin, detects a value of at least one characteristic of the electromagnetic energy utilizing synchronous undersampling, and calculates the current lost through the patient. The characteristic measured may be a value of current of the electromagnet energy. An adjustable matching network may be utilized to maximize power to the tissue of the patient. Values of the impedance of the matching network may be utilized to determine the electromagnetic energy delivered to the tissue of the patient. A current correction factor is determined from the impedance of the matching network and utilized to calculate the current lost through the patient.