Thank you for your respond.
But I already checked it…
And I change the error by changing the formula.
Still my system do not work.
I doubt that the problem is maybe rather in my command.
I write the command that to fetch latitude and longitude every 5 second and calculate.
Can you find some wrong block assignment?