Fixed gand total calculation