{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/e42d18e979d543688d8bd1be861399ee\" frameborder=\"0\" width=\"1868\" height=\"1401\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1401,"width":1868,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1401,"thumbnail_width":1868,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/e42d18e979d543688d8bd1be861399ee-1ced08426bb8012d.gif","duration":716.381,"title":"Adding Bonus Input and Percent Calculations","description":"This Loom demonstrates adding a bonus input feature and related calculations to an existing budgeting script. The author first confirms the corrected character code is working, then adds a new bonus label and input with id bonus placeholder showing zero and min zero. In the script, they introduce a bonus variable from the DOM, adjust totals so balance uses total income minus total expenses, and compute bonus percent as bonus divided by total income, displaying it to one decimal place. They test with examples like 300 bonus, 600 food, 1,200 rent, 500 others, and 300 group, showing the bonus percentage calculation result."}