API + Front : Dynamic duration for courses