using nhibernate formula