Update NupackPricing.java

Finished the computing method to get the final cost. The method will return the result to whichever application it is called by.