Arithmetic Operations

Hi guys! It’s me again! I’m trying to do an “add to cart” bot. I mean, if the costumer needs add more products I need that the bot can do the arithmetic operations and adding each value. Do you have some sample or template? Need Help.