I think this is already done in some European countries.
The UK is doing it...
https://www.sentencingcouncil.org.uk/explanatory-material/magistrates-court/item/fines-and-financial-orders/approach-to-the-assessment-of-fines-2/5-approach-to-offenders-on-low-income/