func searchOutdatedInvestments(investments []Investment, date time.Time) []int {
	idxs := make([]int, 0)
	for i, inv := range investments {
		if date.After(inv.EndDate) || date.Equal(inv.EndDate) {
			idxs = append(idxs, i)
		}
	}
	return idxs
}
// doing a search using linear search algorithm, nothing fancy
doing a search using linear search algorithm, nothing fancy
// doing a search using linear search algorithm nothing fancy
func searchOutdatedInvestments(investments []Investment, date time.Time) []int {
	idxs := make([]int, 0)
	for i, inv := range investments {
		if date.After(inv.EndDate) || date.Equal(inv.EndDate) {
			idxs = append(idxs, i)
		}
	}
	return idxs
}
func searchOutdatedInvestments ( investments [ ] Investment , date time . Time ) [ ] int { idxs := make ( [ ] int , 0 ) for i , inv := range investments { if date . After ( inv . EndDate ) || date . Equal ( inv . EndDate ) { idxs = append ( idxs , i ) } } return idxs }
doing a search using linear search algorithm, nothing fancy
doing a search using linear search algorithm nothing fancy