service entrance calculation