Calculate length of spokes required for a bicycle wheel given measurements of the hub and rim.