I began university Jan 2024, but paid school expenses dec 2023. when do I claim those expenses?

do university expenses have to be claimed the year you attend?