# Exclude Sundays from Rolling x number of days

**URL:** <https://pug.phocassoftware.com/t/exclude-sundays-from-rolling-x-number-of-days/1897>\
**Category:** Ask the Community\
**Created:** [June 7, 2021, 10:22pm UTC](https://pug.phocassoftware.com/t/exclude-sundays-from-rolling-x-number-of-days/1897 "2021-06-07T22:22:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpratt](https://avatars.discourse-cdn.com/v4/letter/w/2acd7d/32.png) [@wpratt](https://pug.phocassoftware.com/u/wpratt)\
**Post date:** [June 7, 2021, 10:22pm UTC](https://pug.phocassoftware.com/t/exclude-sundays-from-rolling-x-number-of-days/1897/1 "2021-06-07T22:22:46Z")

</div>

I’m working on a cost analysis for certain products and how our cost to purchase is trending over a rolling 45 day period. We are not open on Sundays, so once in every 7 day period by trend goes to 0. Is there way to create custom rolling period that will ignore Sundays?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/c/c6e98e779c7ae9d78d40aef3f0c78dfeafa01785.png)
