Db calculate type