<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Calculating Total Number of Days Based Off 4 Different Date Picker Fields</title><link>https://www.infopathdev.com:443/forums/thread/87035.aspx</link><pubDate>Wed, 13 Feb 2013 15:50:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87035</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=87035</wfw:commentRss><description>&lt;p&gt;InfoPath has a function to add days to a date, but nothing built in for calculating the differences between them. &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;qRules&lt;/a&gt; can do this for you (and much more) if a third party tool is allowable in your environment. Otherwise, I have seen some rule-based date calculations - here&amp;#39;s a sample form that someone posted the other day while we were trying to work out why a time calculation wasn&amp;#39;t working any longer when he upgraded to IP 2010.&lt;/p&gt;</description></item><item><title>Calculating Total Number of Days Based Off 4 Different Date Picker Fields</title><link>https://www.infopathdev.com:443/forums/thread/87009.aspx</link><pubDate>Tue, 12 Feb 2013 21:01:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87009</guid><dc:creator>r.iqbal87</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=87009</wfw:commentRss><description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;I apologize in advance if this topic has been posted in the past. I have searched through the forum and attempted numerous techniques posted but have been unable to get this to work. I figure my situation is quite unique, therefore the threads found here may not apply to my situation so I decided to inquire about my issue in its own thread.&lt;/p&gt;&lt;p&gt;Anyways, here&amp;#39;s the situation:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am attempting configure a field within my InfoPath form, that calculates total number of days a patient has spent within the ICU. The total number of days is to be calculated based off of&amp;nbsp; 4 different fields, which are all bound to Date Picker controls. I am using InfoPath 2013, and the form is in compatibility mode since it is a browser enabled form, hosted on a server running SharePoint 2007.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Essentially, this is what I am trying to do:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;u&gt;Names of the 4 different fields involved in the calculation:&lt;/u&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ol&gt;&lt;ol&gt;&lt;li&gt;Admission_Data_icu_admit_date&amp;nbsp;&lt;/li&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;(Data type: Date (date))&lt;/i&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;Admission_Data_transfer_date &lt;br /&gt;&lt;/li&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;(Data type: Date (date))&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;Admission_Data_icu_readmission_date&amp;nbsp;&lt;/li&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;(Data type: Date (date))&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;Admission_Data_second_transfer_death_date&amp;nbsp;&lt;/li&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;(Data type: Date (date))&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;blockquote&gt;&lt;p&gt;&lt;u&gt;Name of field the calculated value will appear in:&lt;/u&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&amp;nbsp;Admission_Data_total_icu_days&amp;nbsp;&lt;/li&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;(Data type: Text (string))&lt;/i&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b&gt;( (&lt;/b&gt;&lt;b&gt;Admission_Data_second_transfer_death_date) - (&lt;/b&gt;&lt;b&gt;Admission_Data_icu_readmission_date) ) + ( (Admission_Data_transfer_date) - (Admission_Data_icu_admit_date) ) = Admission_Data_total_icu_days&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have attempted multiple approaches using rules, but to no avail.&lt;/p&gt;&lt;p&gt;If anyone can provide me some insight, or point me in the right direction, I would sincerely appreciate it. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>