1. Create global temp. table:
Select ip, Count(tbl_timetracker.ip) As Total
into ##result
from tbl_timetracker
where datediff(day,getdate(),date)=0 and date <= getdate()
Group BY term,IP
Having COUNT(ip) > 20
2. Evaluate result table ##result based on your requirements
3....