Added time calculation.

Added time calculation. Version 0.1