merge and wrap calc_MaxDose with calc_MinDose