code: def get_upcoming(self, count: int) -> List[ScheduledTransaction]:
          
          # load all enabled scheduled transactions
          all_tx = self.query.filter(ScheduledTransaction.enabled == 1).all()
  
          # calculate next occurrence date
          for tx in all_tx:
              next_date = get_next_occurrence(tx)
              tx["next_date"] = next_date
  
          # order by next occurrence date
          all_tx.sort(key=lambda tx: tx["next_date"].value)
          # get upcoming (top) 10
          top_n = all_tx[:count]
          return top_n
docs: Returns <count> upcoming scheduled transactions