how to calculate consumed eb units