# Pay Rates for each day

**URL:** <https://forum.adalo.com/t/pay-rates-for-each-day/24206>\
**Category:** Get Help\
**Created:** [March 4, 2022, 9:36pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206 "2022-03-04T21:36:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/archer/32/17036_2.png) [@Archer](https://forum.adalo.com/u/Archer)\
**Post date:** [March 4, 2022, 9:36pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/1 "2022-03-04T21:36:13Z")

</div>

Hi All,

Does anyone have an idea on how to make 1 variable equal another variable depending on the day?

I’ll give you an example,

I need to have the variable “Pay Rate” equal the different payrates for each day of the week.

So if its Monday, then the Var “Pay Rate” needs to be equal to var “MonPay” and once it changes to the next date the price changes.

Here is what i have in terms of veriables so far

![Screen Shot 2022-03-05 at 8.33.10 am](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/7/c7498a06a083073070c05f21e71cfd818b05f7e6.png)

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [March 4, 2022, 9:49pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/2 "2022-03-04T21:49:54Z")

</div>

Hi Archer,

This post might help you. Let me know if you need any more help. 🙂

> [@API to get day of week? (Monday, Tuesday, etc)](https://forum.adalo.com/t/api-to-get-day-of-week-monday-tuesday-etc/21630/2):
>
> Make your own, it is pretty simple.

---

<div class="post-metadata">

**Author:** ![Archer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/archer/32/17036_2.png) [@Archer](https://forum.adalo.com/u/Archer)\
**Post date:** [March 4, 2022, 9:57pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/3 "2022-03-04T21:57:08Z")

</div>

Hi James,

Yes I think this will be a huge help!

However, im not sure how to get the Arbitary Javascript app on to my Adalo Account.

Would love some guidence on how to do that.

Thanks,  
Archer

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [March 4, 2022, 10:02pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/4 "2022-03-04T22:02:20Z")

</div>

Never mind, I just realized Adalo has a built-in function for this. You can do something like…

If Day of Week is Saturday \> use $20 pay rate.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/b/c/bc839f68a91569a82703853089100c3b142dd93d.png)

---

<div class="post-metadata">

**Author:** ![Archer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/archer/32/17036_2.png) [@Archer](https://forum.adalo.com/u/Archer)\
**Post date:** [March 4, 2022, 10:05pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/5 "2022-03-04T22:05:48Z")

</div>

But i dont think I can actually have that automatically change the pay rate. Like what tool do I use to actually trigger that? Because i cant do it in the var “PayRate”

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [March 4, 2022, 10:13pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/6 "2022-03-04T22:13:00Z")

</div>

There’s probably a better solution, but for now, you can make it so when the user goes on the home screen you update the pay rate for that day. (create a property in the user’s database and then update that depending on the day)

To update the property when the user goes to the home screen, click on the home screen then go to “actions”.

---

<div class="post-metadata">

**Author:** ![Archer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/archer/32/17036_2.png) [@Archer](https://forum.adalo.com/u/Archer)\
**Post date:** [March 4, 2022, 10:24pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/7 "2022-03-04T22:24:03Z")

</div>

But the Pay Rates are not static, they are dynamic. Therefore, I some how need to implament the following:

Var “PayRate”: if day = “Monday” let “PayRate” = “MonPay”  
If day = “Tuesday” let “PayRate” = “TuePay”  
Etc

Where “MonPay” has been set by user at previous stages.

Do you know how i would have this work?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [March 14, 2022, 10:24pm UTC](https://forum.adalo.com/t/pay-rates-for-each-day/24206/8 "2022-03-14T22:24:51Z")

</div>

Closed on March 14, 2022, 10:24pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
