1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualBasic;
using Microsoft.Office.Interop.Excel;
namespace Metier_C._function
{
class fct_immo
{
//Propriétés
public float Capital { get; set; }
public int Duree { get; set; }
public float Taux_Nominal { get; set; }
public String Garantie { get; set; }
public String Cautio_Personnelle { get; set; }
public String Perte_Financiere { get; set; }
public String Artisan_Commercant { get; set; }
public String Age_30 { get; set; }
public String Achat_Immo { get; set; }
public String DC_Ptia { get; set; }
public String ITT { get; set; }
public String Perte_Emploi { get; set; }
public static double PPmt(
double Rate,
double Per,
double NPer,
double PV,
double FV,
DueDate Due
);
public static double Calcul(float capital)
{
double LValue;
LValue = 0;
double rate = 0.08 / 12;
double per = 14;
double Nper = 3*12;
double pv = 5000;
double fv = 1000;
LValue = PPmt(rate, per, Nper, pv, fv);
return LValue;
}
}
} |
Partager