Nasa explains:
365 +0.25 - 0.01 + 0.0025 - 0.00025 = 365.24225
https://pumas.nasa.gov/examples/how-many-days-are-year
Wait, is this right? omitting every 100 and adding every 400 should be enough.
EDIT: the 4000-year rule is just a proposal for now. So 365.2425 is correct.
Nasa explains:
365 +0.25 - 0.01 + 0.0025 - 0.00025 = 365.24225
https://pumas.nasa.gov/examples/how-many-days-are-year