$ 0 0 René, Please check those values: MsgInfo( nDays, ValType( nDays ) ) MsgInfo( dDate, ValType( dDate ) ) nDays := nDays-(DATE()-dDate)