Mathematical algorithm model of absolute dose in radiotherapy