Time allocation depends on the type of work.
This is one of the biggest problems that I am currently facing. Alongside a full-time job and other commitments. Consistent study becomes extremely hard. Especially for coding-related courses. The advice I was given in the start was spend a fixed amount of time everyday. That seems right at