added lingot calculations
calculate with ajax