If fewer than x safe days on one goal, send the number of safe days to another goal as a datapoint

Beeminder is a tool for data nerds to commit to progress towards goals. You specify any graphable goal (these Applets assume you've created one) and Beeminder plots your progress. Keep your datapoints on the right side of the Bright Red Line or Beeminder will literally charge you money.
Create custom workflows effortlessly by selecting triggers, queries, and actions. With IFTTT, it's simple: “If this” trigger happens, “then that” action follows. Streamline tasks and save time with automated workflows that work for you.
10 triggers, queries, and actions