In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: JD = Month - 1 * 30 + Month / 9 + Month / 2 - Month max 3 / 3 * Year // 4 max 1 + 1 + Day SX/B does not allow more than 1 math operator per line. You'll have to use some temporary variables to hold the results as you build the expression. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=166212#m166221 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)