some R scripts or functions for financial or acutuarial computation