issue #19550: Add profit calculation. Add calcs to orm.