A dynamic parameter to deal with solar gains in buildings