# Request: "cap1" aggday

**URL:** <https://forum.beeminder.com/t/request-cap1-aggday/4994>\
**Category:** Bugabee\
**Created:** [February 21, 2019, 1:30am UTC](https://forum.beeminder.com/t/request-cap1-aggday/4994 "2019-02-21T01:30:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zedmango](https://avatars.discourse-cdn.com/v4/letter/z/c67d28/32.png) [@zedmango](https://forum.beeminder.com/u/zedmango)\
**Post date:** [February 21, 2019, 1:30am UTC](https://forum.beeminder.com/t/request-cap1-aggday/4994/1 "2019-02-21T01:30:55Z")

</div>

I’m requesting an aggday method that returns the max of 1 and the sum of all entries that day - in other words, it caps the sum at 1.

This would allow you to create a daily max for how many times you do something. So if you wanted to allow up to 4 times a day, you just enter 0.25 each time.

Skatesum does something like this but only if you’re right at the edge. I want something that caps the sum all the time.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [February 22, 2019, 6:43am UTC](https://forum.beeminder.com/t/request-cap1-aggday/4994/2 "2019-02-22T06:43:39Z")

</div>

Fascinating and clever! Ideally I guess aggday functions could be parameterized and could just have like cap4 and then enter 1’s like normal. But this should work!

PS: You presumably meant “min” not “max”

---

<div class="post-metadata">

**Author:** ![zedmango](https://avatars.discourse-cdn.com/v4/letter/z/c67d28/32.png) [@zedmango](https://forum.beeminder.com/u/zedmango)\
**Post date:** [February 22, 2019, 6:49am UTC](https://forum.beeminder.com/t/request-cap1-aggday/4994/3 "2019-02-22T06:49:20Z")

</div>

Yeah, parameterizing would be ideal but it seems like a pain to implement.

Another option would be to just have the first few: cap1, cap2, cap3, cap4, and cap5 should cover most of what we need.

And yes I got that backwards - I meant min 😛

---

<div class="post-metadata">

**Author:** ![zedmango](https://avatars.discourse-cdn.com/v4/letter/z/c67d28/32.png) [@zedmango](https://forum.beeminder.com/u/zedmango)\
**Post date:** [February 22, 2019, 11:42pm UTC](https://forum.beeminder.com/t/request-cap1-aggday/4994/4 "2019-02-22T23:42:11Z")

</div>

See also:

> [@A camel's conundrum: capping the daily count](https://forum.beeminder.com/t/a-camels-conundrum-capping-the-daily-count/3072/5):
>
> Thanks for replying, @philip. Like @chelsea, you’ve got a slightly different way of looking at it then me… and that’s good! Without getting too geeky, this solution is probably as close as I’ll get. But I am geeky! nerd I’m going to explore the API some more to see if I can build something to check that final, elusive checkbox.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [March 1, 2019, 7:52am UTC](https://forum.beeminder.com/t/request-cap1-aggday/4994/5 "2019-03-01T07:52:31Z")

</div>

Voila! [http://beeminder.com/changelog#2933](http://beeminder.com/changelog#2933)

---

<div class="post-metadata">

**Author:** ![zedmango](https://avatars.discourse-cdn.com/v4/letter/z/c67d28/32.png) [@zedmango](https://forum.beeminder.com/u/zedmango)\
**Post date:** [March 1, 2019, 7:58am UTC](https://forum.beeminder.com/t/request-cap1-aggday/4994/6 "2019-03-01T07:58:50Z")

</div>

Yay!! So excited! ❤ 😍 💓💗💕
