Beeminder N days of safety buffer for a specific goal.

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

Connect

Pick the goal you want to watch, the goal you want to send the datapoint to, and change the number of safe days you want it to be watching for.