calculate on c sharp