for dashboard calculations