Added delivery cost calculation function - it's a bit specific to me, so I'm trying to find something a little more 'generic'