public static int DAYS360(DateTime xStart_dt, DateTime xEnd_dt, Boolean xEuropean)
{
int days = 0;
if (!xEuropean)
days = ((xEnd_dt.Year * 12 + xEnd_dt.Month) - (xStart_dt.Year * 12 + xStart_dt.Month)) * 30 + xEnd_dt.Day - xStart_dt.Day;
public static int DAYS360(DateTime xStart_dt, DateTime xEnd_dt, Boolean xEuropean)
{
int days = 0;
if (!xEuropean)
days = ((xEnd_dt.Year * 12 + xEnd_dt.Month) - (xStart_dt.Year * 12 + xStart_dt.Month)) * 30 + xEnd_dt.Day - xStart_dt.Day;