refactored curriclum day calculation and improved logic to stop access to future days