[ADD] Add scale and apply_as_deductions calcs

Merged Gabriel Davini requested to merge 8.0-retentions-2017 into 8.0-stage

Merge request reports