one guy asked Many times it is required for us to calculate the time remaining and display it in a very understandable format like days,weeks,hours etc.
I found the complete answer
more details with source code :http://hotjobseeker.com/index.php?option=com_content&task=view&id=8802&Itemid=109