<?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: Formulating a Math Calculation in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/77943.aspx</link><pubDate>Tue, 24 Apr 2012 16:58:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77943</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77943.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77943</wfw:commentRss><description>&lt;p&gt;A date diff is not easy to do in InfoPath out of the box.&amp;nbsp; I believe you&amp;#39;ll need to write custom code or use &lt;a title="qRules" href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;qRules&lt;/a&gt; for that functionality.&amp;nbsp; If you are just using total time then your formula will just look something like:&lt;/p&gt;&lt;p&gt;totalField * numUsersField * (percentField/100)&lt;/p&gt;&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>Formulating a Math Calculation in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/77884.aspx</link><pubDate>Mon, 23 Apr 2012 20:50:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77884</guid><dc:creator>ernestwade</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77884</wfw:commentRss><description>&lt;p&gt;I currently have an InfoPath 2010 form requirement which I&amp;#39;m having problems formulating a math calculation in a Repeating Table. The layout is as follows:&lt;/p&gt;
&lt;p&gt;1. Start of Impact&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date &amp;amp; Time field&lt;/p&gt;
&lt;p&gt;2, End of Impact&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Date &amp;amp; Time field&lt;/p&gt;
&lt;p&gt;3, Total Impact Time (mins)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Single line of text field&lt;/p&gt;
&lt;p&gt;4. Number of Users Impacted&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Single line of text field&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;Percent of Impairment&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Single line of text field&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I would like to apply a rule with this logic:&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="COLOR:#e46c0a;"&gt;Number of Users Impacted * Time Impaired (&lt;i&gt;difference between start of impact and end of impact&lt;/i&gt;) * (Percent of Impairment/100)&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="COLOR:#984807;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;This formula was being used but is not working properly: &lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="COLOR:#984807;"&gt;&lt;/span&gt;&lt;span style="COLOR:#e46c0a;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;~~=IF([CS Impact]=0,0,[Num of Users Impacted]*[xTime_Impacted]*([Percent of Impairment]/100)~~&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="COLOR:#e46c0a;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Can anyone tell me how to get these results?&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;</description></item></channel></rss>