Dev of calculations