code: def messages(self):
          
  
          return int(math.floor(((self.limit.unit_value - self.level) /
                                 self.limit.unit_value) * self.limit.value))
docs: Return remaining messages before limiting.