How to calculate Time Complexity for a given algorithm

One of my friends wanted to know “How to calculate the time complexity of a given algorithm”. My obvious answer to him was… “Why do YOU want to calculate it?. There are tools available that do it for you!!” (E.g. Analyze menu in VS Team Suite, NDepend are a few). Well… I don’t want to…

54