code: def _havdalah_datetime(self):
          
          if self.havdalah_offset == 0:
              return self.zmanim["three_stars"]
          # Otherwise, use the offset.
          return (self.zmanim["sunset"]
                  + dt.timedelta(minutes=self.havdalah_offset))
docs: Compute the havdalah time based on settings.