# Decrease progress bar using a count based on time intervals

**URL:** https://community.glideapps.com/t/decrease-progress-bar-using-a-count-based-on-time-intervals/17057
**Category:** Ask for Help
**Created:** [October 12, 2020, 4:39pm UTC](https://community.glideapps.com/t/decrease-progress-bar-using-a-count-based-on-time-intervals/17057 "2020-10-12T16:39:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Todd\_Lichtenwalter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_lichtenwalter/32/12231_2.png) [@Todd\_Lichtenwalter](https://community.glideapps.com/u/Todd_Lichtenwalter)
#### Post date: [October 12, 2020, 4:39pm UTC](https://community.glideapps.com/t/decrease-progress-bar-using-a-count-based-on-time-intervals/17057/1 "2020-10-12T16:39:25Z")

</div>

Users have a “energy level” progress bar. I want the progress bar to decrease in 30min intervals by 25%.

a)Ideally this could be automated by pressing clicking an admin level button to start the process.

b)If I have to do it manually, then a button using increments.

Not sure if a) is even possible and I should focus on the manual b).

Any ideas about how to accomplish either a) or b)

---

<div class="post-metadata">

### Author: ![Todd\_Lichtenwalter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_lichtenwalter/32/12231_2.png) [@Todd\_Lichtenwalter](https://community.glideapps.com/u/Todd_Lichtenwalter)
#### Post date: [October 12, 2020, 5:42pm UTC](https://community.glideapps.com/t/decrease-progress-bar-using-a-count-based-on-time-intervals/17057/2 "2020-10-12T17:42:26Z")

</div>

For b) I came up with this simple sequence: column A1(energy obtained when user toggles switch to “consume meal”). B1(increments activated by button). C1(B1/4-decreases energy bar 25pts). D1(C1\*100). E1(A1-D1). I am going to display a timer app on the wall inside the spaceship and at 30min. intervals I will press the “hunger button”…that all my beginner skills could come up with for now. The a) version is beyond me at this time to figure out-- but if you have an idea on how to make it so, let me know.

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [October 12, 2020, 6:07pm UTC](https://community.glideapps.com/t/decrease-progress-bar-using-a-count-based-on-time-intervals/17057/3 "2020-10-12T18:07:44Z")

</div>

Using all Glide columns, this one depletes 7% every 5 minutes. Didn’t do the math right, obviously—made it in under a minute. But it’s possible:  
 ![Screen Shot 2020-10-12 at 2.06.54 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/4/4f676ee5b6ee7f2ba7e3a3b22f3233fcd33b3549.png)

---

<div class="post-metadata">

### Author: ![Todd\_Lichtenwalter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_lichtenwalter/32/12231_2.png) [@Todd\_Lichtenwalter](https://community.glideapps.com/u/Todd_Lichtenwalter)
#### Post date: [October 12, 2020, 6:11pm UTC](https://community.glideapps.com/t/decrease-progress-bar-using-a-count-based-on-time-intervals/17057/4 "2020-10-12T18:11:22Z")

</div>

Do tell maestro…my case use is that the bar level gets resupplied when the student “eats a meal” (a roll up in sum in the user profile). Can you share details of how you pulled that off? Would it fit with my case use?
