Figure out how many weekends have passed between $then and $now, subtract that from the total. It's a tough little script when you start trying to eliminate weekends.
Of course you could also use a database. Have a table with a value. Increment that value everyday except on weekends with a automated script.