<?php
$db = $GLOBALS['db'];
$r=$db->fetchByAssoc($db->query("select days from ecmpaymentconditions where id='".$_REQUEST['id']."'"));
echo date("d.m.Y",@mktime(0,0,0,$_REQUEST['month'],$_REQUEST['day'],$_REQUEST['year'])+3600*24*$r['days']);
?>