Formula To Calculate Time Complexity