I need assistance in displaying the calculated amount of cups using cup icons. Keep in mind that one icon represents 220 ml.
My objective is to reach 3.60 liters of water intake. This equates to approximately 16.36 cups.
Is there anyone who can assist me with this? I would like it to be shown as 16 cup icons.
.col-xl-4.mb-5
p Goal: {{ waterIntake }} litres
p Cups: {{ cupsIntake }}
waterIntake() {
var currentWeight = this.goalWeight;
var water = currentWeight * 0.03;
let text = water.toFixed(2);
return text;
},
cupsIntake() {
var currentWeight = this.goalWeight;
var water = currentWeight * 30;
let litres = water.toFixed(1);
let cups = water / 220;
return cups;
},