MT#6443 Calculate dashboard costs correctly

(cherry picked from commit 51b508fd60321abfe6b5a11095c7f1c69e2e6bee)