Hi,
At first glance: You call your functions as a separate process (
$(convert_to_days $start_date )), no need for that.
Something like this is better (untested):
Code:
echo -n "Start Date : " convert_to_days $start_date
echo -n "End Date : " convert_to_days $end_date
You do this more then once in your script, modify all those lines.
Hope this helps.