On Calculating B-splines