Calculation of differences and divisions