Need a help to update a Sales Invoice Items

Please check the following post to learn how to write a custom script to calcuate value based on the value in various other fields.