in this value "overdueDays", I would like to fetch 0 if this field is null. Thanks.
Could you try this.
overdueDays = g.Any(x => x.AdatGun < 0) ? your code here: 0;