Defibrillators

Hi, I’m actually working on Defibrillators puzzle
I’ve having issues to get the good distance, I rand my code again and again and compare it to the formulas but I’m not able to see what’s wrong with what I’ve done…

Maybe someone will see ? (I whould be so gratefull :))
My code in c# below :

Code deleted by a moderator

A post was merged into an existing topic: Defribillators puzzle discussion