update calculation script