Hi - I'm building a basic app to track progress of projects through db. When the project is first created, it saves the created_at timestamp (yes, it's rails), and the user can then update the following fields:
- status (choose from 'in progress', 'frozen', 'done' or 'scratched')
- priority ('none', 'minor', 'major')
- days (the estimate, in days, of how long the project will take)
- title and description (not too relevant to calculation, but anyway)
When any updates are made to this project, the updated_at timestamp is changed to the current date/time. I want to display a snazzy progress bar, and was looking for ideas on how I might tackle the actual percentage calculation based on the existing parameters. One obvious thing will be to return 100% if status == 'done', but otherwise I'm interested in any exciting ideas that people can brainstorm. thanks!