calculate increment value