Calculate trend based on frequency