Based On Conditions populate value In calculated field

ifElse(
or(
equal(related($accounts,"account_type"),"Reseller"),
equal(related($accounts,"account_type"),"Investor"),
),
related($accounts,"name"),
"nope!"
)

i want to populate account name if the 2 conditions are true but its not getting account name by default it is getting nope!

is this formula correct or do i need to change  something in formula.

And if i want to add this field in quoted line items

is it work or not ??

hats Francesca ShiekhAlex Nassi