expenses calc fix