Q&A for people studying math at any level and professionals in related fields
select Count(v.Id) from Votes v inner join Posts p on p.Id=v.PostId where p.PostTypeId = 2 AND v.VoteTypeId = 2 and p.Score < = ##MaxScore## and DATEDIFF(day, p.CreationDate, v.CreationDate) >= ##MinDays##