<?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>Help with some simple math calculations in InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/thread/82172.aspx</link><pubDate>Thu, 30 Aug 2012 16:08:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82172</guid><dc:creator>scottb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82172</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am a newbie to this forum and also InfoPath (I started using it around 3 days ago) and have became stuck on some calculations. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have created two textboxes with number formats, which house two seperate values. These being Costs and Benefits, and then i would like to work out a calculation in percentage as a Return on Investment. For example, if i had 10,000 Costs and 10,000 Estimates i would hope that the calculation would show 0 as a Return on Investment. However with my coding abilities, i am returning a value of 100!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My code within the textbox that is producing the 100 value is as follows: &amp;quot;TotalEstimatedCosts / TotalBenefitsValue * 100&amp;quot;. It also doesnt make any difference on the number, as it keeps on producing incorrect values. For example another is: 5000 Benefit divided by 10000 costs is producing 200! (A positive value too).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could anyone be kind enough to tell me where i am going wrong?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;br /&gt;Scott.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>