Dashboard status and progress calculation

Could someone please reveal us based on numbers how the statuses and progress are calculated. Sometimes it doesn’t make any sense. Any answer will be highly appreciated.