<?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: Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59408.aspx</link><pubDate>Wed, 29 Sep 2010 04:11:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59408</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59408.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59408</wfw:commentRss><description>&lt;p&gt;I can show you how to do that, but is 7.21, 7 hours and 21 minutes, or is it 7.21 hours?&amp;nbsp; I&amp;#39;m confused by your use of a period here.&lt;/p&gt;</description></item><item><title>Re: Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59407.aspx</link><pubDate>Wed, 29 Sep 2010 04:08:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59407</guid><dc:creator>haigaiz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59407.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59407</wfw:commentRss><description>Thanks for the help Jimmy, but I still can&amp;#39;t figure out how to subtract 7.21 from the monTotal field?</description></item><item><title>Re: Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59405.aspx</link><pubDate>Wed, 29 Sep 2010 02:59:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59405</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59405.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59405</wfw:commentRss><description>&lt;p&gt;Please have a look at the attached form.&amp;nbsp; I used a different default value formula on monLarge that doesn&amp;#39;t require the separate calculation fields.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d also point out that your monMins and monMinf fields were not actually in the &lt;strong&gt;Calculations&lt;/strong&gt; group, but were actually underneath the root node, with all the other fields.&amp;nbsp; Just something to look out for.&lt;/p&gt;</description></item><item><title>Re: Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59404.aspx</link><pubDate>Wed, 29 Sep 2010 02:22:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59404</guid><dc:creator>haigaiz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59404</wfw:commentRss><description>It&amp;#39;s got two views, one for the user to actually see and the other is where it&amp;#39;s performing the calculations. The time worked field is where it needs to subtract the 7.21 hours.
I&amp;#39;ve actually got another form that&amp;#39;s practically finished but the formatting stuffs up if the make the minutes lower. (bah, i&amp;#39;ll zip them both together, but it&amp;#39;s probably a bit confusing the follow - you can tell I&amp;#39;m new!). If you could help me with this one it&amp;#39;d probably be much easier? The way I&amp;#39;m doing this one is converting the time to seconds, and then back to decimal (I think you even helped me with one of the formulas?)

The one I&amp;#39;m referencing with this thread is the file named TEST1. The one that&amp;#39;s practically finished but the formatting breaks is the one called Flex1.
http://filevo.com/o4dhuxmzun3t.html 

I really can&amp;#39;t thank you enough for your help! Cheers mate.
(Also, how do you do paragraphs on this forum? I know nobody likes a wall of text)</description></item><item><title>Re: Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59403.aspx</link><pubDate>Wed, 29 Sep 2010 01:54:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59403</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59403</wfw:commentRss><description>&lt;p&gt;Yes, that would certainly be helpful in illuminating what you mean.&lt;/p&gt;</description></item><item><title>Re: Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59402.aspx</link><pubDate>Wed, 29 Sep 2010 01:02:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59402</guid><dc:creator>haigaiz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59402</wfw:commentRss><description>The only problem is that the field I need to subtract from isn&amp;#39;t a time field. I&amp;#39;m using substring-before to subtract the hours and minutes of each time field into separate Whole Number fields, finding the highest of each and subtracting them, then concatenating them into another field to look like a time field. It doesn&amp;#39;t look like addSeconds works on anything but timefields? Not sure if the way I&amp;#39;m doing it is overly complicated. I can upload a copy (it&amp;#39;s in the very early stages) if you want to see what I mean?</description></item><item><title>Re: Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59384.aspx</link><pubDate>Tue, 28 Sep 2010 13:24:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59384</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59384</wfw:commentRss><description>&lt;p&gt;Use addSeconds(&lt;strong&gt;&lt;u&gt;timeField&lt;/u&gt;&lt;/strong&gt;, -75600).&amp;nbsp; Here 75600 is the result of 60 * (21 + (60 * 7)).&amp;nbsp; To use this formula, you should leave the time field with its colons in it, and not extract them out.&lt;/p&gt;</description></item><item><title>Subtracting time problems</title><link>https://www.infopathdev.com:443/forums/thread/59383.aspx</link><pubDate>Tue, 28 Sep 2010 12:41:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59383</guid><dc:creator>haigaiz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59383.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59383</wfw:commentRss><description>Hi guys,
I&amp;#39;m trying to figure out a way to subtract a constant time value (7.21) from another time value (a Whole Number field that&amp;#39;s populated by using substring before&amp;#39;s on actual time fields).
The problem is when trying to subtract the .21 from a value that&amp;#39;s lower than .21 and getting a minus value, instead of subtracting from the hours. Can anybody help me with a formula that could fix this?</description></item></channel></rss>