By default, attendance less than 4 hours is shown in red, 4-8 hours in blue and more than 8 hour sin green on a user's attendance calendar, if you wish to change it, then you need to do the following
1. Go to uKnowva configuration --> Plugin manager
2. Find the plugin attendance DB
3. Click on it and change the threshold values
Result will be something like this on attendance page: