i am devloping library management system in asp.net C#. i want to calculate fine by comparing isuue date and return date. Here
Fine is calculated as:
Find the no of days between issue date and return date.
If no of days are greater than 10 then calculate fine using the formula given below
Fine=No. of Days * 10 Rs. (i.e 10 Rs fine per day)
Otherwise there will be no fine.
So i am inserting the record of isuue date in issue table (data type- Date in sql server)
so how i calculate by comparing the return date. please provide sagment of code for it.