The percentage could be rather calculated on the client side.
You'd just need to return the necessary storage info to make this possible.