H_c is the max it can heal so H_h = \min(H_c,\ \text{MaxHP} - \text{HP})(HP Healed).
H_s =
\begin{cases}
10 & \text{if}\ H_h \le 5 \\
H_h & \text{if}\ H_h \gt 5
\end{cases}
H_c is the max it can heal so H_h = \min(H_c,\ \text{MaxHP} - \text{HP})(HP Healed).
Can you clarify variables \text{MaxHP} and \text{HP}?
MaxHP is the maximum HP they have.
HP is how much hp they have
Example - someone has 945/1000HP. MaxHP is 1000 and HP is 945
i might be wrong
The MaxHP and HP of the target sentries, not the repair sentry