computes daily/weekly expense for students