calc green threshold