<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Counting days in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Counting-days/m-p/491122#M128720</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to write a script that will help me bill people staying at some appartments. I am only billing for one month at a time, so i have set a first day of interest and a last day of interest. What I'm struggling with, is billing those who haven't stayed the full month. How do i count the days between first day of interest and last day of interest when some people have moved in after first day and some have moved out before last day (and even some have done both)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2018 08:01:00 GMT</pubDate>
    <dc:creator>Posterne</dc:creator>
    <dc:date>2018-08-30T08:01:00Z</dc:date>
    <item>
      <title>Counting days</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-days/m-p/491122#M128720</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to write a script that will help me bill people staying at some appartments. I am only billing for one month at a time, so i have set a first day of interest and a last day of interest. What I'm struggling with, is billing those who haven't stayed the full month. How do i count the days between first day of interest and last day of interest when some people have moved in after first day and some have moved out before last day (and even some have done both)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 08:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-days/m-p/491122#M128720</guid>
      <dc:creator>Posterne</dc:creator>
      <dc:date>2018-08-30T08:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Counting days</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-days/m-p/491124#M128722</link>
      <description>&lt;P&gt;You would use the intck function with parameter 'day':&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1md4mx2crzfaqn14va8kt7qvfhr.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1md4mx2crzfaqn14va8kt7qvfhr.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or if your two dates are numeric dates, then subtracting the smaller from the larger will result in the days difference, as SAS stores dates as number of days since the cuttoff point.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 08:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-days/m-p/491124#M128722</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-30T08:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Counting days</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-days/m-p/491130#M128724</link>
      <description>Thanks! This community is amazing</description>
      <pubDate>Thu, 30 Aug 2018 08:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-days/m-p/491130#M128724</guid>
      <dc:creator>Posterne</dc:creator>
      <dc:date>2018-08-30T08:14:07Z</dc:date>
    </item>
  </channel>
</rss>

