Financial modeling in R