calculations on pd