Calculating average expenses with tax