For number of days between 2 dates, I'd use calculated field column type and put the DATEDIF formula in the column setting in the SP list setting..not in info path designer.
Then for number of days between today and a date, I'd create a date column in my list, then have a site workflow to update that date column everyday. There's other option of using job/task scheduler, but I don't know how.