added conditionals to financial calculations in case they are blank