servlet + calculations