calculating degression