<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Dynamic math calculation?</title><link>https://www.infopathdev.com:443/forums/thread/72989.aspx</link><pubDate>Thu, 15 Dec 2011 17:32:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72989</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72989.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72989</wfw:commentRss><description>&lt;p&gt;That worked perfectly.&amp;nbsp; I used the raw date diff to store the date calc, and then just calculated the time change from that into another field.&amp;nbsp; I created a rule that firsts resets the second field to the raw date diff, and then the second rule conditionally adjusts the value if necessary.&lt;/p&gt;
&lt;p&gt;Simple solution again.&amp;nbsp; I was trying to hard to make it complicated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Dynamic math calculation?</title><link>https://www.infopathdev.com:443/forums/thread/72987.aspx</link><pubDate>Thu, 15 Dec 2011 17:00:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72987</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72987.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72987</wfw:commentRss><description>&lt;p&gt;How about having two fields for the date difference?&amp;nbsp; One (RawDateDifference)&amp;nbsp;holds the result of qRules DateDiff calculation, and the other (AdjustedDateDifference) holds the value that takes the time into account?&amp;nbsp; Then when RawDateDifference or the time change, just recalculate AdjustedDateDifference.&lt;/p&gt;</description></item><item><title>Dynamic math calculation?</title><link>https://www.infopathdev.com:443/forums/thread/72983.aspx</link><pubDate>Thu, 15 Dec 2011 16:13:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72983</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72983.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72983</wfw:commentRss><description>&lt;p&gt;I have 2 date fields that calculate the difference between days, and give the total in another field.&amp;nbsp; (thanks, Qrules)&lt;/p&gt;
&lt;p&gt;I have another field for time.&amp;nbsp; If the time is greater than 12:00 it subtracts half a day from the total.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The problem I&amp;#39;m having is, if I change the time to another time greater than 12:00 (noon), it will subtract again, which is not what I want.&amp;nbsp; And if I change the time to be less than 12:00, the previous calculation will still be there, obviously.&lt;/p&gt;
&lt;p&gt;What would be the best way to approach setting the total depending on what the time field is?&amp;nbsp; Should I use an eval function or something?&amp;nbsp; &lt;/p&gt;</description></item></channel></rss>