set percent value depending on status (in the same way as google does it)