maxDose function

Determine the Maximum Possible Next Dose