Modelling investments and loans