Calculate buffer size from distance in km