Fixed broken expenses calculation