fixed util locationSpending and weeklySpending functions