You can easily achieve Fee Calculation on a Monthly basis and also on a Daily basis using only Calculations & Logic Block in Clappia. You can select only 1 month or more than 1 month. Here's how:
1. Fee Calculation on a Monthly basis
Consider a simple app as shown below which includes the particulars of the student, months, fee per month and the total fees.
Blocks used in the app:
Single Line Text - Student Name.
Single Line Text - Roll Number.
Single Selector - Is it a Leap Year? (Options: Yes, No.)
Multiple Selector - Fee to be paid for the month/months? (Options: All the months in the year.)
Single Selector - Number of months.
Calculations & Logic - Number of days in the months selected (This is where the magic happens. The Formula is explained below the image. Keep reading.)
Single Line Text - Fee per month. (The app user will enter the number manually.)
Calculations & Logic - Total Fees Payable. (Formula: Multiplication of "Number of days in the months selected" and "Fee per month". Type @ and select the appropriate variables.)
Number of days in the months selected - The below formula will automatically input the number of days in a month selected or the total number of days in the months selected.
If the answer is 'Yes' for the leap year then February will have 29 days. If the answer is 'No' then February will... (More)