Simple perms calculation