I agree that 540km is not 300nm. So the solution is to make the trip longer than 300 nm as it is a minimum distance, not a target. It might be worth writing to the CAA asking for clarification on the requirements. Is there a minimum straight line distance between airports? if there is, and your route satisfies that part of, why not just put a dogleg in the plan?