Any book for learning to correctly find out complexity of one's algorithm?
Simply pick up any algorithms book out there, they will all take you through these things.  What you are describing is essentially the algorithms (and computational complexity) field.

The most popular books are Algorithms by Sedgewick and Wayne, which is free for download, the CLRS Introduction to Algorithms, and the epic Art of Computer Programming by Knuth.