fixed dashboard calculation