This solves the leap year issue as well as putting it into a single MX. The funny quotes are necessary to "hide" PHP parens from MarkupExpression processing. {(set i = "floor((" (ftime %s "03/03/2008") - (ftime %s) ") / 3600 / 24 )")} -Peter