@davidbdyer
Posted
Have you considered removing the arrows in the number input fields since they aren't in the original design? You might also limit the number of people field to not accept less than 1.
Also might prevent the calculation when the output will be infinity.
Overall nice job!
Marked as helpful
@devMarco02
Posted
thanks @davidbdeath .I fixed it. I added Math.floor() to round down number of people, to avoid decimal values.
@davidbdyer
Posted
@devMarco02 Nice! That's a better solution than what I did.