Fórmula porcentual en JavaScript
const result = Math.round((data.expense / data.income) * 100)
Salo Hopeless
const result = Math.round((data.expense / data.income) * 100)
var number = 120;
//The percent that we want to get.
//i.e. We want to get 50% of 120.
var percentToGet = 50;
//Calculate the percent.
var percent = (percentToGet / 100) * number;