DEV Community

Discussion on: Daily Challenge #280 - Driving School

Collapse
 
fjones profile image
FJones
minutes => Math.max(0, Math.ceil((minutes-65)/30)*10) + (minutes>5)*30;

For some abuse of weak typing and code golf. Should work.