I know there are many other questions out there asking for the general guide of how to calculate the time complexity, such as this one.
From them I have learnt that w