Allow finer calculation period
Allow file loading via command line argument
Prevent crash when entering total amount