How Calculate time complexity and compare between given two algorithms?

I want to calculate the time complexity and show by the equation for both algorithms. Also, I need a comparison between the two algorithms to show which one is better and why. Could you help with that? It would be beneficial for me and very much appreciable.

Thanks, advance