Created by: vibvibgyor
Description of PR
There was problem with the number of active cases. The formula to calculate the number of active cases is as follows:
Active = Confimed - Recovered - Deceased
The problem with this is that if for any day the number of recovered + number of deceased is more than number of confimed then the number of active cases will be negative for any day, but this is logically wrong (how can a number of active cases be negative for a day?). The formula is updated to:
Active = Max(0, Confimed - Recovered - Deceased)
This will also fix the problem with the time series 'Daily' graphs. This formula is also added for the total active cases. There might be a situation when this can also be negative.
Type of PR
-
Bugfix
Relevant Issues
Fixes Number of daily active cases.
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone
Screenshots