def CalculateRawWeight(self, current_date=datetime.datetime.now()):
        age_seconds = (current_date - self.date).total_seconds()
        age_days = float(age_seconds) / (24 * 3600)
        age_years = age_days / 365.25
        return self.sample_size * (0.25 ** age_years)
Calculates a weight for mixing polls from multiple sources.
dataset/ETHPy150Open j3camero/canada-election-forecast/poll.py/Poll.CalculateRawWeight