Avatar

Level 2

If.jpg

How do I write this JavaScript or Form Calc?