Okay, it seems that you know the formula $$s=\frac{d}{t}\tag{$\star$}$$ for average speed $s$ over a distance $d$ and time $t.$ It also seems that, given speed, distance, and time $s_1,d_1,t_1$ (respectively) such that $s_1=\frac{d_1}{t_1},$ and given some arbitrary distance $d$ and arbitrary non-zero time $t,$ you're looking for functions $f$ and $g$ such that if $$s:=s_1+f(d,d_1)+g(t,t_1),\tag{$\heartsuit$}$$ then $(\star)$ holds. (I'm less sure about this part, as your post is a bit unclear.)
Clearly, if $d=0,$ then we need to have $s=0,$ regardless of $t,$ or $(\star)$ will fail to hold. It then follows from $(\heartsuit)$ that for $(\star)$ to hold, we need $$g(t,t_1)=-s_1-f(0,d_1)\tag{1}$$ for all $t.$ For $(\star)$ to hold whenever $(\heartsuit)$ does, then by $(\heartsuit)$ and $(1),$ we need $$s=f(d,d_1)-f(0,d_1)\tag{2}$$ for all $d.$ Another thing we need in order for $(\star)$ to hold is that, when $d=d_1,$ then $s=\frac{t_1}{t}s_1,$ regardless of $t.$ By $(2),$ we then need $$\frac{t_1}{t}s_1=f(d_1,d_1)-f(0,d_1)\tag{!}$$ for all $t,$ but this is impossible unless $s_1=0,$ for otherwise the left-hand side will vary as $t$ does, while the right-hand side remains constant.
Therefore, since we derived a contradiction from our assumption that $f$ and $g$ existed such that $(\star)$ holds whenever $(\heartsuit)$ holds, then no such functions $f$ and $g$ exist.
Upshot: The reason you're having trouble getting the figures you're looking for is that it's impossible (assuming I understand correctly what you're trying to do).