How do you calculate the time value of an option?

How do you determine the time value of an option and why is it important?,