[XLS-521] Create UDF for new style curves - fixing dates comparision