Pin code counter

hello i wanted to see if anyone can analyze the following code and see where the error lies. it is supposed to echo the current date and start counting from 0000-9999 and show the approximate range that it is at. here is a pic of what the output should look like:

here is the scrpit:

#/bin/bash
while true do
  clear echo
  date start=`date +%s -d "Wed Jan 16 17:46:00"`
  current=`date +%s`
  echo "Current PIN Between: " | tr '\n' ' '
  echo "($current - $start) / 19.782" | bc | tr '\n' ' '
  echo " and " | tr '\n' ' '
  echo "($current - $start) / 18.782" | bc
  sleep 2
done

thanx in advance.

Is this a homework assignment?

What operating system are you using?

Do you have access to a 1993 or later version of the Korn shell ( ksh )?

What diagnostics did you get from bash when you tried running your script? Did those diagnostics give you any idea of what errors might be present in your script?

Yes it's a class project.

We are using windows but I have Linux at home.

Sorry totally new to this. I don't know what ksh is.

When I run the script all I get is unexcepted ending ( if I remember correct) and it says something about the done on the last line of the code.

Sorry I can't help more. This is the first assignment of the class. If you want to copy the script and run it yourself it's fine by me.

We are not here to do your homework for you. Homework has to be filed in the homework & coursework questions forum and the homework template included in the homework and coursework forum rules must be filled in completely for all posts in that forum.