Confused af

This isn’t related to me it has just always confused me, that romeo and juliet law says something like “if they are within 4 years of age it is not illegal” do days count in that? like if someone was 4 years and 2 months older than you (or vice versa) would that mean it’s illegal? or does it mean 5 years? like do months / days count as it being illegal?