This is a triangle calculator. Specifically, this is the open source triangle-calculator provided here: https://ostermiller.org/calc/triangle.html Since an LED emits light roughly in the shape of a cone, we can use…