#53 added quadatic regression to calculate real amount