A Highly Accurate and Optimal Method to Calculate Long Range Interactions