Basic total and cost calculator