Dose calculations algorithms