Code

Fixed used service calculation