DEV Community

SEO - NT Tech Innovation
SEO - NT Tech Innovation

Posted on

Project When Your TikTok Hits 1,000 Followers With 20 Lines of JavaScript

By MD Fozla Rabbi, SEO Specialist

A small online seller in Davao asked me something practical. "If I get 40 new TikTok followers a day, when do I hit 1,000? And what if I post twice a day?" Easy question. Annoying to do by hand every week.

So here's a tiny JavaScript function that projects follower milestones from your recent daily growth. It runs in the browser console or Node. No libraries, no API, no login.

The idea

TikTok growth is lumpy. One video blows up, the rest do okay. So instead of a straight line, we take the median daily gain from the last 14 days. Median ignores that one viral day that would make the projection way too optimistic.

The code

function median(nums) {
  const s = [...nums].sort((a, b) => a - b);
  const mid = Math.floor(s.length / 2);
  return s.length % 2 ? s[mid] : (s[mid - 1] + s[mid]) / 2;
}

function projectMilestone(current, dailyGains, target, boost = 1) {
  const perDay = median(dailyGains) * boost;
  if (perDay <= 0) return null;
  const days = Math.ceil((target - current) / perDay);
  const date = new Date();
  date.setDate(date.getDate() + days);
  return {
    perDay: Math.round(perDay),
    days,
    eta: date.toLocaleDateString("en-PH", { month: "short", day: "numeric", year: "numeric" }),
  };
}

// last 14 days of new followers, copied from TikTok analytics
const gains = [12, 30, 18, 25, 210, 22, 15, 28, 19, 33, 24, 17, 26, 21];

console.log("Current pace:", projectMilestone(412, gains, 1000));
console.log("Posting 2x/day (est. 1.6x):", projectMilestone(412, gains, 1000, 1.6));
Enter fullscreen mode Exit fullscreen mode

With the sample numbers, the median is about 23 followers a day. That puts 1,000 roughly 26 days away. The 1.6x "post twice a day" scenario brings it to around 16 days.

The 1.6 multiplier is a guess. Replace it with your own number after you've actually tested posting twice a day for two weeks.

Why the median matters

Look at day 5 in the array: 210 followers. One video went semi-viral. If we used the average, daily growth jumps to about 37 and the projection gets way too rosy. The median keeps you honest. Plan with the median. Celebrate the spikes.

What actually moves the number in PH

The code only measures. Growth still comes from content. A few things that consistently help Filipino accounts:

  • Hook in the first second. Show the result first.
  • Taglish captions. Natural language beats stiff English for local audiences.
  • Post around 7–10 PM. After-work scrolling hours tend to be strong. Test your own data though.
  • Reply to comments with videos. Easy content and it signals an active creator.
  • Series content. "Day 12 of selling kakanin online" gives people a reason to follow.

For a fuller playbook, BoostingPH's guide on how to get 1,000 TikTok followers in the Philippines covers content ideas, posting rhythm and what changes once you cross the 1K mark, like going LIVE.

Ideas to extend it

  • Read gains from a CSV export instead of hardcoding them.
  • Project several milestones at once: 1K, 5K, 10K.
  • Plot the projection with a tiny chart library.

If you build something on top of this, share it in the comments. Always curious how other devs track creator stats.

Top comments (0)