Welcome to the forum @profboahen and thanks for adding your profile picture. It helps build community! We're glad you're here. When you get a chance, please introduce yourself on this forum thread.
Please see the XLSForm documentation on calculation
.
Here is an example: calculate_total.xlsx (8.9 KB)