Certainly, here are the formulas for the mathematical calculations mentioned in the system.1
References
1Aggarwal A, Kumar R, Singh Jakhar N, P G. Live Tracking of Metro Rail using Internet of Things. In: 2023 International Conference on Recent Advances in Science and Engineering Technology (ICRASET). IEEE; 2023:1-5. doi:10.1109/ICRASET59632.2023.10420289