If the answer to both questions is yes, then the invention might be patentable. But if it's just a new way of using an abstract idea, like Alice's financial method, then it probably won't fly.
Learn More - Top Interesting Patent Lawsuits
Can I renew a patent after it expires
How Can I Use Patents For My Competitive Advantage?
Can I use someone else's patented idea for personal use
Should I patent my product right away, or wait
Can I keep my invention a secret instead of patenting it