# Interface Data Quota

**URL:** <https://forum.mikrotik.com/t/interface-data-quota/79514>\
**Category:** Beginner Basics\
**Created:** [July 30, 2014, 8:42am UTC](https://forum.mikrotik.com/t/interface-data-quota/79514 "2014-07-30T08:42:49Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![SiB](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/sib/32/1144_2.png) [@SiB](https://forum.mikrotik.com/u/SiB)\
**Post date:** [February 24, 2021, 5:38pm UTC](https://forum.mikrotik.com/t/interface-data-quota/79514/32 "2021-02-24T17:38:37Z")

</div>

Pante90

> [@](#):
>
> i want, if is possible, make a script that when the traffic on SIM “a” will be finish(on 50GB of limit) change a modem, and a APN. I have on SIM “a”, 70Gb of traffic, and the APN is 1, otherhand i have on SIM “b”, 50Gb of traffic limit and APN is 2.

You have counting scripts in this post. Use it. You can create other way… like check if internet is offline - if true then run script who replace sim slots and do change APN etc.  
e.g. [Change SIM Slot](http://forum.mikrotik.com/t/r11e-lte-configuration-help/138222/8)

---

_[View the full topic](https://forum.mikrotik.com/t/interface-data-quota/79514)._
