<?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: Subtract existing column before form submission</title><link>https://www.infopathdev.com:443/forums/thread/100344.aspx</link><pubDate>Mon, 01 Dec 2014 12:03:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100344</guid><dc:creator>Miggi03</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100344</wfw:commentRss><description>Thanks Patrick

The goal is to minus minutes from the &amp;quot;Hours field&amp;quot; based on the text input from the &amp;quot;Break taken field&amp;quot;

The trick part is the &amp;quot;Hours&amp;quot; field is a sum created from the &amp;quot;time from&amp;quot; and &amp;quot;time to&amp;quot; fields.

Hope this makes a bit more sense?

Thanks again for your reply.</description></item><item><title>Re: Subtract existing column before form submission</title><link>https://www.infopathdev.com:443/forums/thread/100343.aspx</link><pubDate>Mon, 01 Dec 2014 11:53:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100343</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100343.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100343</wfw:commentRss><description>&lt;p&gt;Hi Miggi03,&lt;/p&gt;
&lt;p&gt;This should be easy to do. You can convert strings to numbers using the number() function. In addition, you can sum a column using the sum() function.&lt;/p&gt;
&lt;p&gt;So, to extract the total of a column, just use sum(field) where field is the column in the repeating group or section. &lt;/p&gt;
&lt;p&gt;You can use default values for the column to auto calculate the fields in advance before summing.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a little confused about exactly what you are trying to do, so if this doesn&amp;#39;t help, please email me.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Subtract existing column before form submission</title><link>https://www.infopathdev.com:443/forums/thread/100342.aspx</link><pubDate>Mon, 01 Dec 2014 10:35:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100342</guid><dc:creator>Miggi03</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100342.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100342</wfw:commentRss><description>Hi all

I am looking for a way to subtract the total of a column using a formula.

The formula for which I need to subtract the time from is as follows using another text input field.

translate(addSeconds(timetoRT, -1 * (substring(timeFromRT, 1, 2) * 3600 + substring(timeFromRT, 4, 2) * 60 + substring(timeFromRT, 7, 2))), &amp;quot;ER?&amp;quot;, &amp;quot;&amp;quot;) 

This is a text string and as such the amount subtracted for Lunch breaks etc would also need to be.

I&amp;#39;m not sure how to go about this. Any suggestions?

Thank you.</description></item></channel></rss>