The chlorine loss is a proportionate loss so a certain percentage per unit of time. It's an exponential decay rate, so FC = FC0 * e-k*t where FC0 is the FC at time 0 (your starting or reference time) and "k" is a rate of loss. You can calculate k if you know the FC at two points in time since k = -ln(FC/FC0)/t or perhaps more simply k = ln(FC0/FC)/t so take the ratio of the starting FC to ending FC, take the natural logarithm of that, and divide by the time. That gives you "k" you can use in the exponential decay formula but of course you have to use the same units for time "t" as you used when deriving k. That can be hours if you want or even minutes, but your accuracy isn't going to be that precise.
Note also that the decay rate will vary a lot depending on how much sun there is on the pool so that not only varies by pool, but by season (angle of sun in the sky), by weather (clouds, etc.), and you already know it varies by FC. It can also vary by bather load or by nascent algae growth, but if there is sufficient minimum chlorine (FC/CYA ratio) levels and if the bather load is typical for a residential pool, then most of your FC loss will be from sunlight. If the pool has a pool cover, then there may be less loss from sunlight, but there will be additional loss from oxidizing the pool cover and that will come at night as well.
So the above formula assumes a constant "k", but the reality is that "k" will vary mostly due to the sunlight intensity. Obviously accounting for that makes it a more complicated formula and you'd be better off just figuring a 24-hour "k" and then assume that all the loss occurs during the day (say, over 12-hours).
Another complicating factor for this is that the decay at shock (SLAM) levels is faster than at normal levels for two reasons. One is that the FC/CYA ratio is higher so there is more active chlorine that decays faster than chlorine bound to CYA. The other reason is that the pH is usually higher during a SLAM unless you significantly lowered it first and at higher pH the higher hypochlorite ion concentration decays a lot faster than hypochlorous acid. At a pH of 7.5 where there is a 50/50 mix, the half-life near the water's surface is 35 minutes, but at a high pH with only hypochlorite ion the half-life is only 20 minutes.
So you'll have to do some measurements under different conditions, but once you determine "k" for that set of conditions you should be able to roughly predict the FC over time at least broadly.
If you were just to look at this in terms of days, then this becomes easier since you just figure out the percentage drop per day and then to figure out subsequent days just raise to that power the number of days. So if the 24-hour drop is 20% of the FC level, then the final FC is 80% of the initial FC. After two days it's 80% * 80% = 64%. After three days it's 0.83 = 0.512 or 51.2% and so on. This is the same as using the exponential formula, but simpler because it uses a fixed time increment. I derive this below:
k = -ln(FC/FC0)/1 = -ln(1-day-ratio)
FC/FC0 = e-k*t = eln(1-day-ratio)*t = (1-day-ratio)t
So if you know the ratio of final to starting FC for a given time interval, then you can easily calculate what would happen over multiples of that time interval by simply raising that ratio to a power that represents how many such time intervals (which can be a fraction like 3.5 to figure out mid-day between days 3 and 4). Using our example of a 20% loss over 1 day so that after one day you have 80% of what you started with, then after 3-1/2 days you would have 0.83.5 = 0.458 = 45.8% left so a little less than half. In practice, at SLAM levels your losses may be substantially higher but you'll just have to see what those are.
Now let's say you want to go backwards and have a final FC target and a starting SLAM target and want to know how far back in time you need to go to make that work. Solve for "t" in the above so
t = ln(FC/FC0)/ln(1-day-ratio)
So using our example of a 1-day-ratio of 0.8, let's say we shock to 20 ppm and want to end up at 5 ppm. Then t = ln(5/20)/ln(0.8) = -1.386/-0.223 = 6.2 days so roughly 6 days.
Now let's say that "t" is fixed at a week and you want to know what level to raise the chlorine so that it will end up at your target. The formula for this solves for FC0:
FC0 = FC/(1-day-ratio)t
So for a 0.8 1-day-ratio and one week, so 7 days, we have 5/0.87 = 23.8 so you need to raise the initial FC to around 24 ppm to have it end up at 5 ppm 7 days later.