<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Overtime</title><link>https://www.infopathdev.com:443/forums/thread/106456.aspx</link><pubDate>Thu, 05 May 2016 20:42:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106456</guid><dc:creator>Bloodlion</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=106456</wfw:commentRss><description>using the one from http://blogs.msdn.microsoft.com/infopath/2007/02/21/calculating-elapsed-timewithout-code/

and I have all the code good with a lot of custom stuff to add in lunches and our breaks ,,, but I wanna do overtime its been driving me mad ...

breaks we have two 10 minutes each ... and lunches are an 1 hour ..

Nevermind I got it 

I just sum the total ... and then had a form with what number I wanted  then sum that then subtracted it from the sum of the total ... and just make a rule to set value to 0 if less then 0

but this only works for one day ... how do I get it working for more then one day sum(total1) - fulltime that what I have in overtime  and then I have fulltime sum(sumfulltime) which  sumfulltime has 8

total is (((substring-before(EndTime, &amp;quot;:&amp;quot;) * 60) + substring-before(substring-after(EndTime, &amp;quot;:&amp;quot;), &amp;quot;:&amp;quot;)) - ((substring-before(StartTime, &amp;quot;:&amp;quot;) * 60) + substring-before(substring-after(StartTime, &amp;quot;:&amp;quot;), &amp;quot;:&amp;quot;))) / 60 - Sumbreak - Sumlunch

turns out it breaks the code o need some thing to do hours and minutes of overtime</description></item></channel></rss>