Calculation of research costs