# Custom contributions for multiple roundup pots

**URL:** <https://community.monzo.com/t/custom-contributions-for-multiple-roundup-pots/101831>\
**Category:** Feedback & Ideas\
**Created:** [18 July 2020 12:06 UTC](https://community.monzo.com/t/custom-contributions-for-multiple-roundup-pots/101831 "2020-07-18T12:06:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![swok1080](https://dub1.discourse-cdn.com/monzo/user_avatar/community.monzo.com/swok1080/32/24954_2.png) [@swok1080](https://community.monzo.com/u/swok1080)\
**Post date:** [18 July 2020 14:30 UTC](https://community.monzo.com/t/custom-contributions-for-multiple-roundup-pots/101831/2 "2020-07-18T14:30:01Z")

</div>

Welcome to the community @Alexpg.

You can achieve this with [IFTTT](https://monzo.com/features/ifttt/).

If you’re not interested in setting the applets up for yourself then you can use mine but these are unofficial unsupported etc.:

- [30%](https://ifttt.com/applets/qziT2Ng8-put-30-of-spare-change-into-pot-on-card-purchases)
- [70%](https://ifttt.com/applets/eTzVED9Q-put-70-of-spare-change-into-pot-on-card-purchases)

If you want to set up your own applets so you have full control then you’ll sign up as a “developer” on [https://platform.ifttt.com/](https://platform.ifttt.com/), create your own applet with the following:

- Trigger: Any card purchase above an amount
- Action: Move money into a pot

Once you’ve added both of those then in between them click “Add filter code” and you can use this example code below to work out a percentage of the roundup:

```
var spendVal = parseFloat(Monzo.cardPurchaseAboveAmount.AmountInAccountCurrency)

// Check whether the transaction would have resulted in a round up
  var rem = ( spendVal % 1 )
  if ( rem === 0 )
  {
    // Purchases that are integers do not round up
    Monzo.potDeposit.skip();
  } else {
    // Set the pot deposit as 70% of the spare change - amend "0.7" to change the percentage
    var roundUp = ( 1 - rem ).toFixed(2)
    var partRoundUp = (parseFloat(roundUp) * 0.7).toFixed(2)
    Monzo.potDeposit.setAmount(partRoundUp);
  }

```

You’ll need to create one applet for 70% and one for 30% and you’re good to go; any questions let me know 🙂 or post them into the [support thread](https://community.monzo.com/t/monzo-ifttt-support-thread/39382/450).

---

_[View the full topic](https://community.monzo.com/t/custom-contributions-for-multiple-roundup-pots/101831)._
