How to limit the access of courses in time ?

Hey guys,

Hope you're fine under the sunshine ! I was wondering if there was an option to control the access of the courses ? For example, a student purchase a course and he has one year to access it.

Thx for your time :wink: