Period for which user is working on unix system

hello friends
i need a shell script which
will prompt to enter a user name
and displays , from how long he is using the system

Hi friend.

read USER
last $USER | head -1

This is date and time calculation(search the forum for solutions), the solution depend on your shell/OS.