Determines cost-to-ship for a package using Ruby