A stochastic model for financial evaluation: applications to actuarial contracts