Dividing value of entity?

I have a entity from my wifi router showing the amount of bytes sent and received. I’d like to divide that by 102410241024 to get the gigabytes throughput. How could i do this in a sensor card for example ?

At least i’m thinking it’s bytes, it might be bits then i’d expect the entity to say b/s :slight_smile:

You’d have to use a template sensor and templating.